status = warn

#Log to console
appender.console.type = Console
appender.console.name = LogToConsole
appender.console.layout.type = PatternLayout
# %logger{36}#
appender.console.layout.pattern = %highlight{%d [%t] %-5level %c{1}.%M(): %msg%n%throwable}{FATAL=white, ERROR=red, WARN=bright_yellow, INFO=green, DEBUG=blue, TRACE=magenta}


# Rotate log file
appender.rolling.type = RollingFile
appender.rolling.name = LogToRollingFile
appender.rolling.fileName = logs/app.log
appender.rolling.filePattern = logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = %d %p %C{1.} [%t] %m%n
appender.rolling.policies.type = Policies
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=10MB
appender.rolling.strategy.type = DefaultRolloverStrategy
appender.rolling.strategy.max = 10

# Log to console and rolling file
logger.app.name = com.nikolay.dateApp
logger.app.level = debug
logger.app.additivity = false
logger.app.appenderRef.rolling.ref = LogToRollingFile
logger.app.appenderRef.console.ref = LogToConsole

rootLogger.level = info
rootLogger.appenderRef.stdout.ref = LogToConsole

#????? ????????? ?????????? Hibernate(?????? ?????? ????? ??????)
logger.hiber.name=org.hibernate
logger.hiber.level=info

#????? SQL ????????
logger.sql.name=org.postgresql
logger.sql.level=debug

logger.sqlvars.name=org.hibernate.sql.type
logger.sqlvars.level=trace
